package com.itany.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/opt")
public class OperationController {


    @RequestMapping("/add")
    public String add(){
        System.out.println("OperationController.add()");
        return "add";
    }

    @RequestMapping("/remove")
    public String remove(){
        System.out.println("OperationController.remove()");
        return "remove";
    }

    @RequestMapping("/modify")
    public String modify(){
        System.out.println("OperationController.modify()");
        return "modify";
    }

    @RequestMapping("/find")
    public String find(){
        System.out.println("OperationController.find()");
        return "find";
    }
}
